package net.core.base.dao;

import static org.junit.Assert.fail;

import javax.annotation.Resource;

import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath*:resources/applicationContext*.xml")
public class CommonDAOImplTest extends AbstractJUnit4SpringContextTests{
	@Autowired
	CommonDAO dao;
	@Before
	public void setUp() throws Exception {
		//dao = new CommonDAOImpl();
	}

	@Test
	public void testGetPageList() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetPageNum() {
		String sql= "select user_code from s_sysuser";
		int i= dao.getPageNum(sql);
		System.out.println("num:"+i);
	}

	@Test
	public void testGetDataList() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetInforByRecId() {
		fail("Not yet implemented");
	}

	@Test
	public void testInsertSql() {
		fail("Not yet implemented");
	}

	@Test
	public void testUpdateSql() {
		fail("Not yet implemented");
	}

	@Test
	public void testDeleteDataRealString() {
		fail("Not yet implemented");
	}

	@Test
	public void testDeleteDataRealStringStringArray() {
		fail("Not yet implemented");
	}

	@Test
	public void testDeleteDataStringStringString() {
		fail("Not yet implemented");
	}

	@Test
	public void testDeleteDataStringStringArrayString() {
		fail("Not yet implemented");
	}

	@Test
	public void testRunSql() {
		fail("Not yet implemented");
	}

	@Test
	public void testBatchInsert() {
		fail("Not yet implemented");
	}

	@Test
	public void testBatchUpdate() {
		fail("Not yet implemented");
	}

	@Test
	public void testBatchRunSql() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetSeqNum() {
		fail("Not yet implemented");
	}

	public CommonDAO getDao() {
		return dao;
	}

	public void setDao(CommonDAO dao) {
		this.dao = dao;
	}

}
